package com.hsogoo.ultraman;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
@Slf4j
public class ConfigServerApplication {

    public static void main(String[] args) {

        System.setProperty("env", "dev");
        System.setProperty("spring.profiles.active", System.getProperty("env"));
        ApplicationContext applicationContext = null;
        boolean success = true;
        try {
            applicationContext = SpringApplication.run(ConfigServerApplication.class, args);
        } catch (Exception e) {
            success = false;
            log.error("**********************启动失败****************" + e.getMessage());
        }
        log.info("**********************启动成功****************");
    }
}
